﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000D0D RID: 3341
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PlayerGetTokenScRsp : IMessage<PlayerGetTokenScRsp>, IMessage, IEquatable<PlayerGetTokenScRsp>, IDeepCloneable<PlayerGetTokenScRsp>, IBufferMessage
	{
		// Token: 0x17002A2E RID: 10798
		// (get) Token: 0x06009582 RID: 38274 RVA: 0x0018DF8F File Offset: 0x0018C18F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PlayerGetTokenScRsp> Parser
		{
			get
			{
				return PlayerGetTokenScRsp._parser;
			}
		}

		// Token: 0x17002A2F RID: 10799
		// (get) Token: 0x06009583 RID: 38275 RVA: 0x0018DF96 File Offset: 0x0018C196
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PlayerGetTokenScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002A30 RID: 10800
		// (get) Token: 0x06009584 RID: 38276 RVA: 0x0018DFA8 File Offset: 0x0018C1A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PlayerGetTokenScRsp.Descriptor;
			}
		}

		// Token: 0x06009585 RID: 38277 RVA: 0x0018DFAF File Offset: 0x0018C1AF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayerGetTokenScRsp()
		{
		}

		// Token: 0x06009586 RID: 38278 RVA: 0x0018DFC4 File Offset: 0x0018C1C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayerGetTokenScRsp(PlayerGetTokenScRsp other) : this()
		{
			this.msg_ = other.msg_;
			this.retcode_ = other.retcode_;
			this.secretKeySeed_ = other.secretKeySeed_;
			this.blackInfo_ = ((other.blackInfo_ != null) ? other.blackInfo_.Clone() : null);
			this.uid_ = other.uid_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009587 RID: 38279 RVA: 0x0018E034 File Offset: 0x0018C234
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayerGetTokenScRsp Clone()
		{
			return new PlayerGetTokenScRsp(this);
		}

		// Token: 0x17002A31 RID: 10801
		// (get) Token: 0x06009588 RID: 38280 RVA: 0x0018E03C File Offset: 0x0018C23C
		// (set) Token: 0x06009589 RID: 38281 RVA: 0x0018E044 File Offset: 0x0018C244
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Msg
		{
			get
			{
				return this.msg_;
			}
			set
			{
				this.msg_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x17002A32 RID: 10802
		// (get) Token: 0x0600958A RID: 38282 RVA: 0x0018E057 File Offset: 0x0018C257
		// (set) Token: 0x0600958B RID: 38283 RVA: 0x0018E05F File Offset: 0x0018C25F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17002A33 RID: 10803
		// (get) Token: 0x0600958C RID: 38284 RVA: 0x0018E068 File Offset: 0x0018C268
		// (set) Token: 0x0600958D RID: 38285 RVA: 0x0018E070 File Offset: 0x0018C270
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ulong SecretKeySeed
		{
			get
			{
				return this.secretKeySeed_;
			}
			set
			{
				this.secretKeySeed_ = value;
			}
		}

		// Token: 0x17002A34 RID: 10804
		// (get) Token: 0x0600958E RID: 38286 RVA: 0x0018E079 File Offset: 0x0018C279
		// (set) Token: 0x0600958F RID: 38287 RVA: 0x0018E081 File Offset: 0x0018C281
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BlackInfo BlackInfo
		{
			get
			{
				return this.blackInfo_;
			}
			set
			{
				this.blackInfo_ = value;
			}
		}

		// Token: 0x17002A35 RID: 10805
		// (get) Token: 0x06009590 RID: 38288 RVA: 0x0018E08A File Offset: 0x0018C28A
		// (set) Token: 0x06009591 RID: 38289 RVA: 0x0018E092 File Offset: 0x0018C292
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Uid
		{
			get
			{
				return this.uid_;
			}
			set
			{
				this.uid_ = value;
			}
		}

		// Token: 0x06009592 RID: 38290 RVA: 0x0018E09B File Offset: 0x0018C29B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PlayerGetTokenScRsp);
		}

		// Token: 0x06009593 RID: 38291 RVA: 0x0018E0AC File Offset: 0x0018C2AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PlayerGetTokenScRsp other)
		{
			return other != null && (other == this || (!(this.Msg != other.Msg) && this.Retcode == other.Retcode && this.SecretKeySeed == other.SecretKeySeed && object.Equals(this.BlackInfo, other.BlackInfo) && this.Uid == other.Uid && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009594 RID: 38292 RVA: 0x0018E130 File Offset: 0x0018C330
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Msg.Length != 0)
			{
				num ^= this.Msg.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.SecretKeySeed != 0UL)
			{
				num ^= this.SecretKeySeed.GetHashCode();
			}
			if (this.blackInfo_ != null)
			{
				num ^= this.BlackInfo.GetHashCode();
			}
			if (this.Uid != 0U)
			{
				num ^= this.Uid.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009595 RID: 38293 RVA: 0x0018E1D2 File Offset: 0x0018C3D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009596 RID: 38294 RVA: 0x0018E1DA File Offset: 0x0018C3DA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009597 RID: 38295 RVA: 0x0018E1E4 File Offset: 0x0018C3E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.blackInfo_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.BlackInfo);
			}
			if (this.SecretKeySeed != 0UL)
			{
				output.WriteRawTag(72);
				output.WriteUInt64(this.SecretKeySeed);
			}
			if (this.Msg.Length != 0)
			{
				output.WriteRawTag(82);
				output.WriteString(this.Msg);
			}
			if (this.Uid != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Uid);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009598 RID: 38296 RVA: 0x0018E298 File Offset: 0x0018C498
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Msg.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Msg);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.SecretKeySeed != 0UL)
			{
				num += 1 + CodedOutputStream.ComputeUInt64Size(this.SecretKeySeed);
			}
			if (this.blackInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BlackInfo);
			}
			if (this.Uid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Uid);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009599 RID: 38297 RVA: 0x0018E33C File Offset: 0x0018C53C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PlayerGetTokenScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Msg.Length != 0)
			{
				this.Msg = other.Msg;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.SecretKeySeed != 0UL)
			{
				this.SecretKeySeed = other.SecretKeySeed;
			}
			if (other.blackInfo_ != null)
			{
				if (this.blackInfo_ == null)
				{
					this.BlackInfo = new BlackInfo();
				}
				this.BlackInfo.MergeFrom(other.BlackInfo);
			}
			if (other.Uid != 0U)
			{
				this.Uid = other.Uid;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600959A RID: 38298 RVA: 0x0018E3E5 File Offset: 0x0018C5E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600959B RID: 38299 RVA: 0x0018E3F0 File Offset: 0x0018C5F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 72U)
				{
					if (num == 58U)
					{
						if (this.blackInfo_ == null)
						{
							this.BlackInfo = new BlackInfo();
						}
						input.ReadMessage(this.BlackInfo);
						continue;
					}
					if (num == 72U)
					{
						this.SecretKeySeed = input.ReadUInt64();
						continue;
					}
				}
				else
				{
					if (num == 82U)
					{
						this.Msg = input.ReadString();
						continue;
					}
					if (num == 88U)
					{
						this.Uid = input.ReadUInt32();
						continue;
					}
					if (num == 104U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04003942 RID: 14658
		private static readonly MessageParser<PlayerGetTokenScRsp> _parser = new MessageParser<PlayerGetTokenScRsp>(() => new PlayerGetTokenScRsp());

		// Token: 0x04003943 RID: 14659
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003944 RID: 14660
		public const int MsgFieldNumber = 10;

		// Token: 0x04003945 RID: 14661
		private string msg_ = "";

		// Token: 0x04003946 RID: 14662
		public const int RetcodeFieldNumber = 13;

		// Token: 0x04003947 RID: 14663
		private uint retcode_;

		// Token: 0x04003948 RID: 14664
		public const int SecretKeySeedFieldNumber = 9;

		// Token: 0x04003949 RID: 14665
		private ulong secretKeySeed_;

		// Token: 0x0400394A RID: 14666
		public const int BlackInfoFieldNumber = 7;

		// Token: 0x0400394B RID: 14667
		private BlackInfo blackInfo_;

		// Token: 0x0400394C RID: 14668
		public const int UidFieldNumber = 11;

		// Token: 0x0400394D RID: 14669
		private uint uid_;
	}
}
